package com.tianlang.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.tianlang.domain.pojo.Account;
import com.tianlang.security.tool.Acegi;
import com.tianlang.security.tool.WcContext;

@Controller
@Acegi(value = { "admin,site" })
@Scope("prototype")
public class IndexController {

	@Acegi(value = { "首页" })
	@RequestMapping("/index")
	public String index(HttpServletRequest request, HttpServletResponse response, Model model) {
		Account _account = WcContext.getCurrentAccount();
		return "index";
	}

}
